<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>企业信息</title>
</head>
<body class="layui-layout-body">

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">企业信息</h4>
            
            	<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
			        <ul class="layui-tab-title">
			            <li class="layui-this">企业信息</li>
			            <li lay-id="ROLE">系统权限</li>
			        </ul>
			        <div class="layui-tab-content" >
			            <div class="layui-tab-item layui-show">
								  <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  企业全称
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux" style="width:300px">
						                  ${company.companyName}
						              </div>
						          </div>
						          
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  主体类型
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux">
						                  <@linkage type="COMPANY_TYPE" key=company.companyType>
								        		<span class="${linkage.style}">${linkage.name}</span>
								          </@linkage>    
						              </div>
						          </div>
						          <hr>
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  注册地址
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux" style="width:500px">
						                  ${company.address}
						              </div>
						          </div>
						          
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  联系电话
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux">
						                  ${company.phoneNumber}  <span><a href="javascript:openwinx('修改用户信息','/company/edit.htm','500','200');"><#if company.phoneNumber??>修改<#else>设置</#if></a></span>
						              </div>
						          </div>
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  企业成员
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux">
						                  ${staffTotal} 个成员
						              </div>
						          </div>
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  企业部门
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux">
						                  ${orgTotal} 个部门
						              </div>
						          </div>
						          <div class="layui-form-item">
						              <label for="sealName" class="layui-form-label">
						                  创建时间
						              </label>
						              <div class="layui-input-inline layui-form-mid layui-word-aux">
						                  ${company.createTime?string('yyyy年MM月dd日')}
						              </div>
						          </div>
			            
			            </div>
		          </div>
		       </div>
        </div>
     </div>
  
     
     <script>
        //JavaScript代码区域
        layui.use(['element','form','layedit','laypage'], function(){
            var element = layui.element;
            var form = layui.form;
            var   layer = layui.layer;
            
            element.on('tab(docDemoTabBrief)', function(elem){
		  		var id = $(this).attr('lay-id');
		  		if(id == 'ROLE'){
		  		 	location.href='/company/role.htm';
		  		}
		   });
          
        });
    </script>     
     
     
</body>
</html>